Repository navigation
refactor(id-directory): split directory.rs under the F11.10 limit (#8591) - #11282
Conversation
) Move replica_facts_for into directory/replica.rs and the validation/normalization helpers into directory/validate.rs, re-exporting normalize_key, normalize_email and hex_to_array at their historical paths. Pure module split: moved code is unchanged, public API and behaviour identical. Delete the directory.rs grandfather entry from check-production-line-limit.sh in the same PR. Guard: check-production-line-limit.sh passes with no #8591 warning (directory.rs was 2558 production lines). Tests: cargo test -p id-directory - 210 passed.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Closes #8591.
Pure module split of pkgs/id/crates/id-directory/src/directory.rs (2,558 production lines, over the F11.10 limit of 2,500), along its natural seams:
normalize_key, normalize_email and hex_to_array are re-exported from the directory module at their historical paths, so the public API and behaviour are unchanged; downstream callers (id-cli, directory_auth, directory_log) are untouched. The now-unused Signature/VerifyingKey imports were dropped from directory.rs, and hex_to_array gained the doc comment its move surfaced.
The grandfather entry for directory.rs is deleted from .github/scripts/check-production-line-limit.sh in this same PR, per the guard convention.
Verification:
Queue task 20186, lane code-b.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.